import {
  filterProjectRouter
} from '@/utils/gettingEnv'

const routers = [{
    path: '/platformPortal',
    name: 'platformPortal',
    component: () => import('@/views/MPlatformPortal'),
    meta: {
      title: '首页'
    }
  },
  {
    path: '/personAuth',
    name: 'personAuth',
    component: () => import('@/views/MPlatformPortal/pages/personAuth.vue'),
    meta: {
      title: '注册选择，个人用户认证'
    }
  },
  {
    path: '/companyAuth',
    name: 'companyAuth',
    component: () => import('@/views/MPlatformPortal/pages/companyAuth.vue'),
    meta: {
      title: '注册选择，企业用户认证'
    }
  },
  {
    path: '/frontAccountInfo',
    name: 'frontAccountInfo',
    component: () => import('@/views/MPlatformPortal/pages/accountInfo.vue'),
    meta: {
      title: '账号信息，详情'
    }
  },
  {
    path: '/serverDetail',
    name: 'serverDetail',
    component: () => import('@/views/MPlatformPortal/pages/serverDetail.vue'),
    meta: {
      title: '网点信息，详情'
    }
  },
  {
    path:"/collect",
    name:"collect",
    component:()=> import('@/views/MPlatformPortal/pages/collect.vue'),
    meta:{
      title:"收藏中心"
    }
  },
  {
    path:'/orgDetail',
    name:'OrgList',
    component:()=> import('@/views/MPlatformPortal/pages/OrgDetail.vue')
  }

]

export const webRoutes = filterProjectRouter('webRouter', routers)